-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: instrument with prometheus #259
Conversation
f485ea4
to
e7c2dd8
Compare
92c2e4c
to
e65a8fc
Compare
e65a8fc
to
304dd56
Compare
--restapi Enable REST API for monitoring and control. | ||
For now only serves /metrics. | ||
Can be set to IP:Port to listen on a specific IP and Port, | ||
or just Port to listen on all interfaces on | ||
that port. [default: disabled] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--restapi Enable REST API for monitoring and control. | |
For now only serves /metrics. | |
Can be set to IP:Port to listen on a specific IP and Port, | |
or just Port to listen on all interfaces on | |
that port. [default: disabled] | |
--restapi Enable REST API for monitoring and control. | |
Only takes effect if Prometheus is enabled. | |
For now only serves /metrics. | |
Can be set to IP:Port to listen on a specific IP and Port, | |
or just Port to listen on all interfaces on | |
that port. [default: disabled] |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only takes effect if Prometheus is enabled.
I was thinking to add other functionality later, like change config in runtime without restart. Could be useful if you already have 1M connections and don't want to redo them again.
Counters = [ publish_latency | ||
, recv | ||
, sub | ||
, sub_fail | ||
, pub | ||
, pub_fail | ||
, pub_overrun | ||
, pub_succ | ||
, connect_succ | ||
, connect_fail | ||
, connect_retried | ||
, reconnect_succ | ||
, unreachable | ||
, connection_refused | ||
, connection_timeout | ||
, connection_idle | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: maybe we could move this list of counter names to a counter_name/0
function, and use it both here and in counters/0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do in the next PR. There are a few more things to deduplicate.
No description provided.